/* 打包时间：2025-11-29 21:10:27 */
(function(){
  try{
    var bridge = null;
    try{ bridge = runtime && runtime.accessibilityBridge; }catch(e){}
    if(!bridge){
      try{
        var m = runtime.getClass().getDeclaredMethod("getAccessibilityBridge");
        m.setAccessible(true);
        bridge = m.invoke(runtime);
      }catch(e){}
    }
    if(!bridge){ return; }
    try{
      var WF = Packages.com.stardust.autojs.core.accessibility.AccessibilityBridge$WindowFilter;
      bridge.setWindowFilter(new JavaAdapter(WF,{ filter:function(info){ return true; } }));
    }catch(e){}
  }catch(e){}
})();
module['exports'] = function (_0x9a2b52) {
    var _0x1d55c8 = {};
    function _0x1387dc(_0x2e1700) {
        if (_0x1d55c8[_0x2e1700])
            return _0x1d55c8[_0x2e1700]['exports'];
        var _0x3b36bc = _0x1d55c8[_0x2e1700] = {
            'i': _0x2e1700,
            'l': ![],
            'exports': {}
        };
        return _0x9a2b52[_0x2e1700]['call'](_0x3b36bc['exports'], _0x3b36bc, _0x3b36bc['exports'], _0x1387dc), _0x3b36bc['l'] = !![], _0x3b36bc['exports'];
    }
    return _0x1387dc['m'] = _0x9a2b52, _0x1387dc['c'] = _0x1d55c8, _0x1387dc['d'] = function (_0x422d7b, _0x3211a4, _0x5b7117) {
        !_0x1387dc['o'](_0x422d7b, _0x3211a4) && Object['defineProperty'](_0x422d7b, _0x3211a4, {
            'enumerable': !![],
            'get': _0x5b7117
        });
    }, _0x1387dc['r'] = function (_0x1b740d) {
        typeof Symbol !== 'undefined' && Symbol['toStringTag'] && Object['defineProperty'](_0x1b740d, Symbol['toStringTag'], { 'value': 'Module' }), Object['defineProperty'](_0x1b740d, '__esModule', { 'value': !![] });
    }, _0x1387dc['t'] = function (_0x5b55fb, _0x532481) {
        if (_0x532481 & 0x1)
            _0x5b55fb = _0x1387dc(_0x5b55fb);
        if (_0x532481 & 0x8)
            return _0x5b55fb;
        if (_0x532481 & 0x4 && typeof _0x5b55fb === 'object' && _0x5b55fb && _0x5b55fb['__esModule'])
            return _0x5b55fb;
        var _0x4c87c7 = Object['create'](null);
        _0x1387dc['r'](_0x4c87c7), Object['defineProperty'](_0x4c87c7, 'default', {
            'enumerable': !![],
            'value': _0x5b55fb
        });
        if (_0x532481 & 0x2 && typeof _0x5b55fb != 'string') {
            for (var _0x429fa5 in _0x5b55fb)
                _0x1387dc['d'](_0x4c87c7, _0x429fa5, function (_0x5aa787) {
                    return _0x5b55fb[_0x5aa787];
                }['bind'](null, _0x429fa5));
        }
        return _0x4c87c7;
    }, _0x1387dc['n'] = function (_0x5b5afb) {
        var _0x742f73 = _0x5b5afb && _0x5b5afb['__esModule'] ? function _0x48d4ea() {
            return _0x5b5afb['default'];
        } : function _0x25d7b9() {
            return _0x5b5afb;
        };
        return _0x1387dc['d'](_0x742f73, 'a', _0x742f73), _0x742f73;
    }, _0x1387dc['o'] = function (_0x229a82, _0x146ef6) {
        return Object['prototype']['hasOwnProperty']['call'](_0x229a82, _0x146ef6);
    }, _0x1387dc['p'] = '', _0x1387dc(_0x1387dc['s'] = 0x21);
}({
    0x21: function (_0x1e9ad8, _0x415ba1) {
        function _0x3f6fc(_0x23a599) {
            let {
                url_prefix: _0x19df79,
                path_prefix: _0x45b3d2,
                module_list: _0xde50e6
            } = _0x23a599;
            _0xde50e6 = _0xde50e6 || requrie('./res/data.json')['module_list'];
            const _0x41cc7c = [], _0x4d31de = [], _0x1aa4ac = _0xde50e6['map'](_0x760999 => {
                    let _0x1977fe = parseInt(new Date()['getTime']() / 0x3e8), _0xd53d27 = _0x19df79 + _0x760999 + '?t=' + _0x1977fe, _0x16010c = files['join'](_0x45b3d2, _0x760999);
                    return () => {
                        return _0x75537e(_0xd53d27, _0x16010c)['then'](_0x4d8757 => {
                            return _0x4d31de['push']([
                                _0xd53d27,
                                _0x16010c,
                                _0x760999
                            ]), console['info']('[download|L15|CdownloadFiles()\x20->\x20asyncFuncs]', '[download]\x20成功:\x20' + _0x760999 + '\x20->\x20' + _0x16010c), toast('模块更新成功:\x20' + _0x760999), _0x4d8757;
                        })['catch'](_0x3dd020 => {
                            return _0x41cc7c['push']([
                                _0xd53d27,
                                _0x16010c,
                                _0x760999
                            ]), console['warn']('[download|L20|CdownloadFiles()\x20->\x20asyncFuncs]', '[download]\x20失败:\x20' + _0x760999 + '\x20->\x20' + _0x16010c + '\x20|\x20' + _0x3dd020), toast('模块更新失败:\x20' + _0x760999), _0x3dd020;
                        });
                    };
                });
            if (!Array['isArray'](_0xde50e6) || _0xde50e6['length'] === 0x0)
                return console['error']('[download|L27|CdownloadFiles()]', '[download]\x20无可更新模块'), toastLog('未发现待更新的模块'), Promise['resolve']([]);
            var _0x20c375 = new Date();
            return console['log']('[download|L32|CdownloadFiles()]', '[download]\x20开始更新模块(' + _0xde50e6['length'] + ')@' + _0x20c375['toLocaleString'](), _0xde50e6['join'](',')), _0x49d714(_0x1aa4ac, 0x1)['then'](() => {
                if (!_0x4d31de['length']) {
                    console['error']('[download|L35|CdownloadFiles()]', '[download]\x20失败:\x20所有模块更新失败\x20(' + _0x41cc7c['length'] + '/' + _0xde50e6['length'] + ')\x20->\x20' + _0x41cc7c['map'](_0x2e38d1 => _0x2e38d1[0x2])['join'](',')), toastLog('所有模块更新失败!!!请检查本地网络状态,重启后重试,如无效果则联系客服');
                    return;
                }
                if (!_0x41cc7c['length']) {
                    console['info']('[download|L40|CdownloadFiles()]', '[download]\x20全部成功:\x20' + _0x4d31de['length'] + '/' + _0xde50e6['length']), toastLog('所有模块更新成功!!!');
                    return;
                }
                console['warn']('[download|L44|CdownloadFiles()]', '[download]\x20首轮失败(' + _0x41cc7c['length'] + '/' + _0xde50e6['length'] + '):\x20' + _0x41cc7c['map'](_0x5d9715 => _0x5d9715[0x2])['join'](',')), toastLog('部分模块[' + _0x41cc7c['map'](_0x30923b => _0x30923b[0x2])['join'](',') + ']更新失败,正在重新下载');
                const _0x9da591 = [], _0x4fac3a = _0x41cc7c['map'](_0xddafd6 => {
                        let [_0x16737e, _0x5ec254, _0x4ecd96] = _0xddafd6;
                        return () => _0x75537e(_0x16737e, _0x5ec254)['then'](_0x16520f => {
                            return _0x4d31de['push']([
                                _0x16737e,
                                _0x5ec254,
                                _0x4ecd96
                            ]), console['info']('[download|L50|CdownloadFiles()\x20->\x20asyncFuncs2]', '[download]\x20二次成功:\x20' + _0x4ecd96 + '\x20->\x20' + _0x5ec254), toast('模块重试成功:\x20' + _0x4ecd96), _0x16520f;
                        })['catch'](_0x5ddf3b => {
                            return _0x9da591['push']([
                                _0x16737e,
                                _0x5ec254,
                                _0x4ecd96
                            ]), console['warn']('[download|L55|CdownloadFiles()\x20->\x20asyncFuncs2]', '[download]\x20二次失败:\x20' + _0x4ecd96 + '\x20->\x20' + _0x5ec254 + '\x20|\x20' + _0x5ddf3b), toast('模块重试失败:\x20' + _0x4ecd96), _0x5ddf3b;
                        });
                    });
                return _0x49d714(_0x4fac3a, 0x1)['then'](() => {
                    const _0x50801b = _0x4d31de['map'](_0x2447d2 => _0x2447d2[0x2])['join'](',');
                    if (_0x9da591['length']) {
                        const _0x50f329 = _0x9da591['map'](_0x24cb0a => _0x24cb0a[0x2])['join'](',');
                        console['error']('[download|L64|CdownloadFiles()]', '[download]\x20二次失败(' + _0x9da591['length'] + '/' + _0x41cc7c['length'] + '):\x20' + _0x50f329), toastLog('仍有部分模块[' + _0x50f329 + ']更新失败,请联系客服'), console['log']('[download|L66|CdownloadFiles()]', '[download]\x20成功(' + _0x4d31de['length'] + '/' + _0xde50e6['length'] + '):\x20' + _0x50801b);
                    } else
                        console['info']('[download|L68|CdownloadFiles()]', '[download]\x20二次重试成功:\x20' + _0x41cc7c['length'] + '\x20项全部修复'), console['log']('[download|L69|CdownloadFiles()]', '[download]\x20成功(' + _0x4d31de['length'] + '/' + _0xde50e6['length'] + '):\x20' + _0x50801b), toastLog('所有模块更新成功!!!');
                })['catch'](_0x7e8c47 => {
                    console['log']('[download|L73|CdownloadFiles()]', _0x7e8c47, 'promiseLimitAll(asyncFuncs2,\x201)');
                });
            })['catch'](_0x184479 => {
                console['log']('[download|L76|CdownloadFiles()]', _0x184479, 'promiseLimitAll(asyncFuncs,\x203)');
            })['finally'](() => {
                for (var _0x47b819 = 0x0; _0x47b819 < _0xde50e6['length']; _0x47b819++) {
                    try {
                        var _0xb4e1b7 = files['join'](_0x45b3d2, _0xde50e6[_0x47b819]) + '.bak';
                        files['exists'](_0xb4e1b7) && files['remove'](_0xb4e1b7);
                    } catch (_0x4fe55a) {
                        console['warn']('[download|L83|CdownloadFiles()]', '[download]\x20删除备份失败', _0xde50e6[_0x47b819], _0x4fe55a);
                    }
                }
            });
        }
        function _0x121103(_0x1594e2, _0x87d8df) {
            return new Promise((_0x56ee11, _0x119a67) => {
                const _0x2bd6c9 = _0x1594e2['split']('/')['pop']();
                http['get'](_0x1594e2, {}, function (_0x1914c5, _0x27acb9) {
                    if (_0x27acb9)
                        return console['error']('[download|L100|CdownloadFileJson()]', _0x27acb9), _0x119a67('下载失败:\x20' + _0x2bd6c9 + '[' + _0x27acb9 + ']');
                    if (_0x1914c5['statusCode'] == 0xc8)
                        try {
                            let _0x3b504b = _0x1914c5['body']['string']();
                            if (!_0x3b504b || _0x3b504b['trim']()['length'] === 0x0)
                                return _0x119a67('JSON内容为空:\x20' + _0x2bd6c9);
                            let _0x112a42 = JSON['parse'](_0x3b504b);
                            return _0x87d8df && (console['log']('[download|L113|CdownloadFileJson()]', '写入' + _0x2bd6c9), files['write'](_0x87d8df, _0x3b504b)), _0x56ee11(_0x112a42);
                        } catch (_0x317310) {
                            return console['error']('[download|L119|CdownloadFileJson()]', _0x317310), _0x119a67('JSON解析失败:\x20' + _0x2bd6c9);
                        }
                    else
                        return console['error']('[download|L123|CdownloadFileJson()]', '返回码错误:' + _0x1914c5['statusCode']), _0x119a67('下载失败:\x20' + _0x2bd6c9 + '[status=' + _0x1914c5['statusCode'] + ']');
                });
            });
        }
        function _0x75537e(_0x28618d, _0x380f7e) {
            return new Promise((_0x5a413a, _0x523bb6) => {
                const _0xdff909 = _0x380f7e['split']('/')['pop'](), _0x776305 = _0x380f7e + '.bak';
                try {
                    files['exists'](_0x380f7e) && files['isFile'](_0x380f7e) && files['copy'](_0x380f7e, _0x776305);
                } catch (_0x1af625) {
                    console['warn']('[download|L146|CdownloadFile()]', '备份失败:\x20' + _0xdff909 + '[' + _0x776305 + ']', _0x1af625);
                }
                http['get'](_0x28618d, {}, function (_0x1880c3, _0x44afc2) {
                    if (_0x44afc2) {
                        try {
                            files['exists'](_0x776305) && files['copy'](_0x776305, _0x380f7e);
                        } catch (_0x5ba914) {
                            console['warn']('[download|L151|CdownloadFile()]', '回滚备份失败:\x20' + _0xdff909 + '[' + _0x776305 + ']', _0x5ba914);
                        }
                        return console['log']('[download|L152|CdownloadFile()]', _0x44afc2), _0x523bb6('服务器接口报错' + _0xdff909 + '[' + _0x44afc2 + ']');
                    }
                    if (_0x1880c3['statusCode'] * 0x1 === 0xc8)
                        try {
                            const _0x17cc95 = _0x1880c3['body']['string']();
                            console['log']('[download|L158|CdownloadFile()]', _0xdff909 + '\x20Line\x201:\x0a:' + (String(_0x17cc95 || '')['split'](/\r?\n/)[0x0] || ''));
                            const _0x145589 = _0x3f7ada(_0x17cc95, _0xdff909 === 'download.js');
                            if (!_0x145589['ok']) {
                                try {
                                    files['exists'](_0x776305) && files['copy'](_0x776305, _0x380f7e);
                                } catch (_0x2881a1) {
                                    console['warn']('[download|L162|CdownloadFile()]', '回滚备份失败:\x20' + _0xdff909 + '[' + _0x776305 + ']', _0x2881a1);
                                }
                                return _0x523bb6('模块内容校验失败:\x20' + _0xdff909 + '[' + _0x145589['msg'] + ']');
                            }
                            try {
                                files['write'](_0x380f7e, _0x17cc95);
                            } catch (_0x10058b) {
                                try {
                                    files['exists'](_0x776305) && files['copy'](_0x776305, _0x380f7e);
                                } catch (_0xdca7ec) {
                                    console['warn']('[download|L170|CdownloadFile()]', '回滚备份失败:\x20' + _0xdff909 + '[' + _0x776305 + ']', _0xdca7ec);
                                }
                                return _0x523bb6('模块写入失败:\x20' + _0xdff909 + '[' + _0x380f7e + ']');
                            }
                            _0x5a413a('模块更新成功' + _0xdff909);
                        } catch (_0x3d0522) {
                            console['log']('[download|L175|CdownloadFile()]', '模块更新失败~', _0x3d0522);
                            try {
                                files['exists'](_0x776305) && files['copy'](_0x776305, _0x380f7e);
                            } catch (_0x2ab91c) {
                                console['warn']('[download|L177|CdownloadFile()]', '回滚备份失败:\x20' + _0xdff909 + '[' + _0x776305 + ']', _0x2ab91c);
                            }
                            _0x523bb6('模块写入失败:\x20' + _0xdff909 + '[' + _0x380f7e + ']');
                        }
                    else {
                        try {
                            files['exists'](_0x776305) && files['copy'](_0x776305, _0x380f7e);
                        } catch (_0x5edbf9) {
                            console['warn']('[download|L182|CdownloadFile()]', '回滚备份失败:\x20' + _0xdff909 + '[' + _0x776305 + ']', _0x5edbf9);
                        }
                        _0x523bb6('模块获取失败:\x20' + _0xdff909 + '[status=' + _0x1880c3['statusCode'] + ']');
                    }
                });
            });
        }
        function _0x49d714(_0x33949d, _0x16d2e4) {
            return new Promise(_0x5b3d90 => {
                let _0x1eb57d = 0x0, _0x18635f = 0x0;
                const _0x2c9b1c = [], _0x4cab91 = _0x33949d['length'];
                function _0x3dd358(_0x517667, _0x30969d) {
                    if (typeof _0x517667 !== 'function') {
                        _0x1eb57d++, console['log']('[download|L202|CpromiseLimitAll()\x20->\x20next()]', 'typeof\x20p\x20!==\x20\x27function\x27', _0x517667, _0x1eb57d);
                        if (_0x1eb57d === _0x4cab91)
                            return _0x2c9b1c[_0x30969d] = 'not\x20function', _0x5b3d90(_0x2c9b1c);
                        return;
                    }
                    _0x517667()['then'](_0x12f8a5 => {
                        _0x2c9b1c[_0x30969d] = _0x12f8a5, _0x1eb57d++;
                        if (_0x33949d['length']) {
                            const _0x2224f5 = _0x33949d['shift']();
                            _0x3dd358(_0x2224f5, _0x18635f), _0x18635f++;
                        } else
                            _0x1eb57d === _0x4cab91 && _0x5b3d90(_0x2c9b1c);
                    });
                }
                while (_0x18635f < _0x16d2e4 && _0x33949d['length']) {
                    const _0x30acf7 = _0x33949d['shift']();
                    _0x3dd358(_0x30acf7, _0x18635f), _0x18635f++;
                }
            });
        }
        function _0x3f7ada(_0x2a0f4d, _0x2b3875) {
            _0x2b3875 === void 0x0 && (_0x2b3875 = ![]);
            try {
                var _0x1b1f36 = String(_0x2a0f4d || '');
                if (_0x1b1f36['trim']()['length'] === 0x0)
                    return {
                        'ok': ![],
                        'msg': '空内容'
                    };
                if (!_0x2b3875) {
                    if (_0x1b1f36['indexOf']('The\x20content\x20may\x20contain\x20violation\x20information') > -0x1)
                        return {
                            'ok': ![],
                            'msg': '违规提示'
                        };
                    var _0x37b9ac = [
                        '<html',
                        '<!DOCTYPE',
                        '<?xml'
                    ];
                    for (var _0xac79ac = 0x0; _0xac79ac < _0x37b9ac['length']; _0xac79ac++) {
                        if (_0x1b1f36['indexOf'](_0x37b9ac[_0xac79ac]) > -0x1)
                            return {
                                'ok': ![],
                                'msg': '返回非JS内容'
                            };
                    }
                }
                var _0x44af24 = [
                        'var\x20',
                        'const\x20',
                        'let\x20',
                        'function\x20',
                        'module.exports',
                        'require('
                    ], _0x4cd2f0 = ![];
                for (var _0x1de0d5 = 0x0; _0x1de0d5 < _0x44af24['length']; _0x1de0d5++) {
                    if (_0x1b1f36['indexOf'](_0x44af24[_0x1de0d5]) > -0x1) {
                        _0x4cd2f0 = !![];
                        break;
                    }
                }
                if (!_0x4cd2f0)
                    return {
                        'ok': ![],
                        'msg': '缺少JS标记'
                    };
                var _0x66d4df = function (_0x1c1ab0, _0x407f0c, _0x28ced8) {
                    var _0x44a31c = 0x0, _0x10f50d = ![], _0x1ae3a5 = ![], _0x3f60d9 = ![], _0x466dc4 = '', _0x38ab16 = ![], _0x432566 = 0x0;
                    for (var _0x15f785 = 0x0; _0x15f785 < _0x1c1ab0['length']; _0x15f785++) {
                        var _0x3e6053 = _0x1c1ab0['charAt'](_0x15f785), _0xd1d26b = _0x15f785 + 0x1 < _0x1c1ab0['length'] ? _0x1c1ab0['charAt'](_0x15f785 + 0x1) : '';
                        if (_0x10f50d) {
                            (_0x3e6053 === '\x0a' || _0x3e6053 === '\x0d') && (_0x10f50d = ![]);
                            continue;
                        }
                        if (_0x1ae3a5) {
                            _0x3e6053 === '*' && _0xd1d26b === '/' && (_0x1ae3a5 = ![], _0x15f785++);
                            continue;
                        }
                        if (!_0x3f60d9 && !_0x38ab16) {
                            if (_0x3e6053 === '/' && _0xd1d26b === '/') {
                                _0x10f50d = !![], _0x15f785++;
                                continue;
                            }
                            if (_0x3e6053 === '/' && _0xd1d26b === '*') {
                                _0x1ae3a5 = !![], _0x15f785++;
                                continue;
                            }
                            if (_0x3e6053 === '\x27' || _0x3e6053 === '\x22') {
                                _0x3f60d9 = !![], _0x466dc4 = _0x3e6053;
                                continue;
                            }
                            if (_0x3e6053 === '`') {
                                _0x38ab16 = !![];
                                continue;
                            }
                        } else {
                            if (_0x3f60d9) {
                                if (_0x3e6053 === '\x5c') {
                                    _0x15f785++;
                                    continue;
                                }
                                if (_0x3e6053 === _0x466dc4) {
                                    _0x3f60d9 = ![], _0x466dc4 = '';
                                    continue;
                                }
                                continue;
                            } else {
                                if (_0x38ab16) {
                                    if (_0x432566 === 0x0) {
                                        if (_0x3e6053 === '\x5c') {
                                            _0x15f785++;
                                            continue;
                                        }
                                        if (_0x3e6053 === '`') {
                                            _0x38ab16 = ![];
                                            continue;
                                        }
                                        if (_0x3e6053 === '$' && _0xd1d26b === '{') {
                                            _0x432566 = 0x1, _0x15f785++;
                                            continue;
                                        }
                                        continue;
                                    } else {
                                        if (!_0x3f60d9) {
                                            if (_0x3e6053 === '/' && _0xd1d26b === '/') {
                                                _0x10f50d = !![], _0x15f785++;
                                                continue;
                                            }
                                            if (_0x3e6053 === '/' && _0xd1d26b === '*') {
                                                _0x1ae3a5 = !![], _0x15f785++;
                                                continue;
                                            }
                                            if (_0x3e6053 === '\x27' || _0x3e6053 === '\x22') {
                                                _0x3f60d9 = !![], _0x466dc4 = _0x3e6053;
                                                continue;
                                            }
                                            if (_0x3e6053 === '`') {
                                                _0x3f60d9 = !![], _0x466dc4 = '`';
                                                continue;
                                            }
                                            if (_0x3e6053 === '{')
                                                _0x432566++;
                                            else {
                                                if (_0x3e6053 === '}') {
                                                    _0x432566--;
                                                    if (_0x432566 === 0x0)
                                                        continue;
                                                }
                                            }
                                        } else {
                                            if (_0x3e6053 === '\x5c') {
                                                _0x15f785++;
                                                continue;
                                            }
                                            if (_0x3e6053 === _0x466dc4) {
                                                _0x3f60d9 = ![], _0x466dc4 = '';
                                                continue;
                                            }
                                            continue;
                                        }
                                    }
                                }
                            }
                        }
                        var _0x117b2f = !_0x10f50d && !_0x1ae3a5 && !_0x3f60d9 && (!_0x38ab16 || _0x432566 > 0x0);
                        if (_0x117b2f) {
                            if (_0x3e6053 === _0x407f0c)
                                _0x44a31c++;
                            else {
                                if (_0x3e6053 === _0x28ced8) {
                                    _0x44a31c--;
                                    if (_0x44a31c < 0x0)
                                        return ![];
                                }
                            }
                        }
                    }
                    return _0x44a31c === 0x0;
                };
                if (!_0x66d4df(_0x1b1f36, '(', ')'))
                    return {
                        'ok': ![],
                        'msg': '括号不平衡()'
                    };
                if (!_0x66d4df(_0x1b1f36, '{', '}'))
                    return {
                        'ok': ![],
                        'msg': '括号不平衡{}'
                    };
                if (!_0x66d4df(_0x1b1f36, '[', ']'))
                    return {
                        'ok': ![],
                        'msg': '括号不平衡[]'
                    };
                return {
                    'ok': !![],
                    'msg': '通过'
                };
            } catch (_0x77291e) {
                return {
                    'ok': ![],
                    'msg': '完整性检查异常'
                };
            }
        }
        _0x1e9ad8['exports'] = {
            'downloadFile': _0x75537e,
            'downloadFileJson': _0x121103,
            'downloadFiles': _0x3f6fc,
            'promiseLimitAll': _0x49d714,
            'checkJsIntegrity': _0x3f7ada
        };
    }
});